New Functions in Week 8

reorder

{stats}

Reorder Levels of Factor based on the values of a second variable, usually numeric.

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

predict

{stats}

Predict Probability

geom_vline

{GGPLOT2}

Draws a vertical line

geom_hline

{GGPLOT2}

Add a horizontal line in GGPLOT2

stargazer

{stargazer}

Create a regression output table

lm

{base}

Fit a linear model

scale_colour_manual

{GGPLOT2}

Create your own discrete scale

colnames

{base}

Retrieve column names of a data frame

coord_flip

{GGPLOT2}

Flip the x and y axes of a graph

confint

{stats}

Calculate confidence Intervals for Model Parameters

print

{base}

Print object to the console

quantile

{stats}

Obtain empirical quantiles of a vector

The end!